package com.anolesoft.yr.mbus.cont.entity;

import java.util.ArrayList;
import java.util.List;

public class ContListServiceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ContListServiceExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andObjuidIsNull() {
            addCriterion("objuid is null");
            return (Criteria) this;
        }

        public Criteria andObjuidIsNotNull() {
            addCriterion("objuid is not null");
            return (Criteria) this;
        }

        public Criteria andObjuidEqualTo(String value) {
            addCriterion("objuid =", value, "objuid");
            return (Criteria) this;
        }

        public Criteria andObjuidNotEqualTo(String value) {
            addCriterion("objuid <>", value, "objuid");
            return (Criteria) this;
        }

        public Criteria andObjuidGreaterThan(String value) {
            addCriterion("objuid >", value, "objuid");
            return (Criteria) this;
        }

        public Criteria andObjuidGreaterThanOrEqualTo(String value) {
            addCriterion("objuid >=", value, "objuid");
            return (Criteria) this;
        }

        public Criteria andObjuidLessThan(String value) {
            addCriterion("objuid <", value, "objuid");
            return (Criteria) this;
        }

        public Criteria andObjuidLessThanOrEqualTo(String value) {
            addCriterion("objuid <=", value, "objuid");
            return (Criteria) this;
        }

        public Criteria andObjuidLike(String value) {
            addCriterion("objuid like", value, "objuid");
            return (Criteria) this;
        }

        public Criteria andObjuidNotLike(String value) {
            addCriterion("objuid not like", value, "objuid");
            return (Criteria) this;
        }

        public Criteria andObjuidIn(List<String> values) {
            addCriterion("objuid in", values, "objuid");
            return (Criteria) this;
        }

        public Criteria andObjuidNotIn(List<String> values) {
            addCriterion("objuid not in", values, "objuid");
            return (Criteria) this;
        }

        public Criteria andObjuidBetween(String value1, String value2) {
            addCriterion("objuid between", value1, value2, "objuid");
            return (Criteria) this;
        }

        public Criteria andObjuidNotBetween(String value1, String value2) {
            addCriterion("objuid not between", value1, value2, "objuid");
            return (Criteria) this;
        }

        public Criteria andProdProductUidIsNull() {
            addCriterion("prod_product_uid is null");
            return (Criteria) this;
        }

        public Criteria andProdProductUidIsNotNull() {
            addCriterion("prod_product_uid is not null");
            return (Criteria) this;
        }

        public Criteria andProdProductUidEqualTo(String value) {
            addCriterion("prod_product_uid =", value, "prodProductUid");
            return (Criteria) this;
        }

        public Criteria andProdProductUidNotEqualTo(String value) {
            addCriterion("prod_product_uid <>", value, "prodProductUid");
            return (Criteria) this;
        }

        public Criteria andProdProductUidGreaterThan(String value) {
            addCriterion("prod_product_uid >", value, "prodProductUid");
            return (Criteria) this;
        }

        public Criteria andProdProductUidGreaterThanOrEqualTo(String value) {
            addCriterion("prod_product_uid >=", value, "prodProductUid");
            return (Criteria) this;
        }

        public Criteria andProdProductUidLessThan(String value) {
            addCriterion("prod_product_uid <", value, "prodProductUid");
            return (Criteria) this;
        }

        public Criteria andProdProductUidLessThanOrEqualTo(String value) {
            addCriterion("prod_product_uid <=", value, "prodProductUid");
            return (Criteria) this;
        }

        public Criteria andProdProductUidLike(String value) {
            addCriterion("prod_product_uid like", value, "prodProductUid");
            return (Criteria) this;
        }

        public Criteria andProdProductUidNotLike(String value) {
            addCriterion("prod_product_uid not like", value, "prodProductUid");
            return (Criteria) this;
        }

        public Criteria andProdProductUidIn(List<String> values) {
            addCriterion("prod_product_uid in", values, "prodProductUid");
            return (Criteria) this;
        }

        public Criteria andProdProductUidNotIn(List<String> values) {
            addCriterion("prod_product_uid not in", values, "prodProductUid");
            return (Criteria) this;
        }

        public Criteria andProdProductUidBetween(String value1, String value2) {
            addCriterion("prod_product_uid between", value1, value2, "prodProductUid");
            return (Criteria) this;
        }

        public Criteria andProdProductUidNotBetween(String value1, String value2) {
            addCriterion("prod_product_uid not between", value1, value2, "prodProductUid");
            return (Criteria) this;
        }

        public Criteria andContMainUidIsNull() {
            addCriterion("cont_main_uid is null");
            return (Criteria) this;
        }

        public Criteria andContMainUidIsNotNull() {
            addCriterion("cont_main_uid is not null");
            return (Criteria) this;
        }

        public Criteria andContMainUidEqualTo(String value) {
            addCriterion("cont_main_uid =", value, "contMainUid");
            return (Criteria) this;
        }

        public Criteria andContMainUidNotEqualTo(String value) {
            addCriterion("cont_main_uid <>", value, "contMainUid");
            return (Criteria) this;
        }

        public Criteria andContMainUidGreaterThan(String value) {
            addCriterion("cont_main_uid >", value, "contMainUid");
            return (Criteria) this;
        }

        public Criteria andContMainUidGreaterThanOrEqualTo(String value) {
            addCriterion("cont_main_uid >=", value, "contMainUid");
            return (Criteria) this;
        }

        public Criteria andContMainUidLessThan(String value) {
            addCriterion("cont_main_uid <", value, "contMainUid");
            return (Criteria) this;
        }

        public Criteria andContMainUidLessThanOrEqualTo(String value) {
            addCriterion("cont_main_uid <=", value, "contMainUid");
            return (Criteria) this;
        }

        public Criteria andContMainUidLike(String value) {
            addCriterion("cont_main_uid like", value, "contMainUid");
            return (Criteria) this;
        }

        public Criteria andContMainUidNotLike(String value) {
            addCriterion("cont_main_uid not like", value, "contMainUid");
            return (Criteria) this;
        }

        public Criteria andContMainUidIn(List<String> values) {
            addCriterion("cont_main_uid in", values, "contMainUid");
            return (Criteria) this;
        }

        public Criteria andContMainUidNotIn(List<String> values) {
            addCriterion("cont_main_uid not in", values, "contMainUid");
            return (Criteria) this;
        }

        public Criteria andContMainUidBetween(String value1, String value2) {
            addCriterion("cont_main_uid between", value1, value2, "contMainUid");
            return (Criteria) this;
        }

        public Criteria andContMainUidNotBetween(String value1, String value2) {
            addCriterion("cont_main_uid not between", value1, value2, "contMainUid");
            return (Criteria) this;
        }

        public Criteria andContListUidIsNull() {
            addCriterion("cont_list_uid is null");
            return (Criteria) this;
        }

        public Criteria andContListUidIsNotNull() {
            addCriterion("cont_list_uid is not null");
            return (Criteria) this;
        }

        public Criteria andContListUidEqualTo(String value) {
            addCriterion("cont_list_uid =", value, "contListUid");
            return (Criteria) this;
        }

        public Criteria andContListUidNotEqualTo(String value) {
            addCriterion("cont_list_uid <>", value, "contListUid");
            return (Criteria) this;
        }

        public Criteria andContListUidGreaterThan(String value) {
            addCriterion("cont_list_uid >", value, "contListUid");
            return (Criteria) this;
        }

        public Criteria andContListUidGreaterThanOrEqualTo(String value) {
            addCriterion("cont_list_uid >=", value, "contListUid");
            return (Criteria) this;
        }

        public Criteria andContListUidLessThan(String value) {
            addCriterion("cont_list_uid <", value, "contListUid");
            return (Criteria) this;
        }

        public Criteria andContListUidLessThanOrEqualTo(String value) {
            addCriterion("cont_list_uid <=", value, "contListUid");
            return (Criteria) this;
        }

        public Criteria andContListUidLike(String value) {
            addCriterion("cont_list_uid like", value, "contListUid");
            return (Criteria) this;
        }

        public Criteria andContListUidNotLike(String value) {
            addCriterion("cont_list_uid not like", value, "contListUid");
            return (Criteria) this;
        }

        public Criteria andContListUidIn(List<String> values) {
            addCriterion("cont_list_uid in", values, "contListUid");
            return (Criteria) this;
        }

        public Criteria andContListUidNotIn(List<String> values) {
            addCriterion("cont_list_uid not in", values, "contListUid");
            return (Criteria) this;
        }

        public Criteria andContListUidBetween(String value1, String value2) {
            addCriterion("cont_list_uid between", value1, value2, "contListUid");
            return (Criteria) this;
        }

        public Criteria andContListUidNotBetween(String value1, String value2) {
            addCriterion("cont_list_uid not between", value1, value2, "contListUid");
            return (Criteria) this;
        }

        public Criteria andServiceOptionIsNull() {
            addCriterion("service_option is null");
            return (Criteria) this;
        }

        public Criteria andServiceOptionIsNotNull() {
            addCriterion("service_option is not null");
            return (Criteria) this;
        }

        public Criteria andServiceOptionEqualTo(String value) {
            addCriterion("service_option =", value, "serviceOption");
            return (Criteria) this;
        }

        public Criteria andServiceOptionNotEqualTo(String value) {
            addCriterion("service_option <>", value, "serviceOption");
            return (Criteria) this;
        }

        public Criteria andServiceOptionGreaterThan(String value) {
            addCriterion("service_option >", value, "serviceOption");
            return (Criteria) this;
        }

        public Criteria andServiceOptionGreaterThanOrEqualTo(String value) {
            addCriterion("service_option >=", value, "serviceOption");
            return (Criteria) this;
        }

        public Criteria andServiceOptionLessThan(String value) {
            addCriterion("service_option <", value, "serviceOption");
            return (Criteria) this;
        }

        public Criteria andServiceOptionLessThanOrEqualTo(String value) {
            addCriterion("service_option <=", value, "serviceOption");
            return (Criteria) this;
        }

        public Criteria andServiceOptionLike(String value) {
            addCriterion("service_option like", value, "serviceOption");
            return (Criteria) this;
        }

        public Criteria andServiceOptionNotLike(String value) {
            addCriterion("service_option not like", value, "serviceOption");
            return (Criteria) this;
        }

        public Criteria andServiceOptionIn(List<String> values) {
            addCriterion("service_option in", values, "serviceOption");
            return (Criteria) this;
        }

        public Criteria andServiceOptionNotIn(List<String> values) {
            addCriterion("service_option not in", values, "serviceOption");
            return (Criteria) this;
        }

        public Criteria andServiceOptionBetween(String value1, String value2) {
            addCriterion("service_option between", value1, value2, "serviceOption");
            return (Criteria) this;
        }

        public Criteria andServiceOptionNotBetween(String value1, String value2) {
            addCriterion("service_option not between", value1, value2, "serviceOption");
            return (Criteria) this;
        }

        public Criteria andServiceOptionValueIsNull() {
            addCriterion("service_option_value is null");
            return (Criteria) this;
        }

        public Criteria andServiceOptionValueIsNotNull() {
            addCriterion("service_option_value is not null");
            return (Criteria) this;
        }

        public Criteria andServiceOptionValueEqualTo(String value) {
            addCriterion("service_option_value =", value, "serviceOptionValue");
            return (Criteria) this;
        }

        public Criteria andServiceOptionValueNotEqualTo(String value) {
            addCriterion("service_option_value <>", value, "serviceOptionValue");
            return (Criteria) this;
        }

        public Criteria andServiceOptionValueGreaterThan(String value) {
            addCriterion("service_option_value >", value, "serviceOptionValue");
            return (Criteria) this;
        }

        public Criteria andServiceOptionValueGreaterThanOrEqualTo(String value) {
            addCriterion("service_option_value >=", value, "serviceOptionValue");
            return (Criteria) this;
        }

        public Criteria andServiceOptionValueLessThan(String value) {
            addCriterion("service_option_value <", value, "serviceOptionValue");
            return (Criteria) this;
        }

        public Criteria andServiceOptionValueLessThanOrEqualTo(String value) {
            addCriterion("service_option_value <=", value, "serviceOptionValue");
            return (Criteria) this;
        }

        public Criteria andServiceOptionValueLike(String value) {
            addCriterion("service_option_value like", value, "serviceOptionValue");
            return (Criteria) this;
        }

        public Criteria andServiceOptionValueNotLike(String value) {
            addCriterion("service_option_value not like", value, "serviceOptionValue");
            return (Criteria) this;
        }

        public Criteria andServiceOptionValueIn(List<String> values) {
            addCriterion("service_option_value in", values, "serviceOptionValue");
            return (Criteria) this;
        }

        public Criteria andServiceOptionValueNotIn(List<String> values) {
            addCriterion("service_option_value not in", values, "serviceOptionValue");
            return (Criteria) this;
        }

        public Criteria andServiceOptionValueBetween(String value1, String value2) {
            addCriterion("service_option_value between", value1, value2, "serviceOptionValue");
            return (Criteria) this;
        }

        public Criteria andServiceOptionValueNotBetween(String value1, String value2) {
            addCriterion("service_option_value not between", value1, value2, "serviceOptionValue");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}